#include <stdio.h>

/**
 * 嵌套 if else 语句
 */
int main() {
	int day, time;
	// 输入感兴趣的天和时间
	printf("Type the day and time of interest\n\n");
	scanf("%d %d", &day, &time);

	if (day <= 5) {
		if (time <= 900) {
			printf("Sleep\n\n");
		}
		else {
			if (time <= 1900) {
				printf("Work\n\n");
			}
			else {
				printf("Relax\n\n");
			}
		}
	}
	else {
		if (time <= 1100) {
			printf("Sleep\n\n");
		}
		else {
			printf("Have fun\n\n");
		}
	}


}
